<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes xin {
            0% {transform: scale(1) rotate(45deg);}

            20% {
                transform: scale(5) rotate(45deg);
            }

            40% {
                transform: scale(4) rotate(45deg);
            }
            60%{
                transform: scale(3) rotate(45deg) ;
            }
            80%{
                transform: scale(2) rotate(45deg);
            }
            100%{
                transform: scale(1) rotate(45deg);
            }
        }

        div {
            width: 20px;
            height: 20px;
            /* background-color: pink; */
        }

        .box div[class^=box] {
            position: absolute;
            border-radius: 50%;
            
        }
        [class^=box] {
            background-color: pink;
        }
        .box {
            position: relative;
            margin: 150px auto;
            animation: xin 2.5s infinite;
        }

        .box1 {
            top: -50%;
            left: 0;
        }

        .box2 {
            top: 0;
            left: -50%;
        }

        .hezi {
            width: 40px;
            height: 60px;
            margin:  auto;
            border: 1px solid transparent;
            /* background-color: aqua;  */
            
        }
    </style>
</head>

<body>
    <div class="hezi">
        <div class="box">
            <div class="box1"></div>
            <div class="box2"></div>
        </div>
        <div class="box">
            <div class="box1"></div>
            <div class="box2"></div>
        </div>
        <div class="box">
            <div class="box1"></div>
            <div class="box2"></div>
        </div>
        
</body>

</html>